package com.skyblue.relation.service;

import java.util.List;

import com.skyblue.relation.dao.DepartmentDao;
import com.skyblue.relation.domain.Department;

public class DepartmentServiceImpl implements DepartmentService{

	private DepartmentDao departmentDao;
	public DepartmentDao getDepartmentDao() {
		return departmentDao;
	}
	public void setDepartmentDao(DepartmentDao departmentDao) {
		this.departmentDao = departmentDao;
	}
	
	@Override
	public void addDepartment(Department department) {
		// TODO Auto-generated method stub
		departmentDao.add(department);
	}
	@Override
	public List<Department> listAllDepartment() {
		return departmentDao.listAll();
	}
}
